﻿

using System;
using System.Runtime.Serialization;
using XStudio.Core.Data;

namespace Core.Manage.Product
{
    /// <summary>
    /// 生资产品表实体
    /// </summary>
    [DataContract]
    [Table("QM_GoodsTB")]
    public partial class GoodsEntity : EntityObject
    {
        #region 内部变量

        private int _GoodID;
        private int _ProductionGoodsID;
        private int _GoodsProductTypeID;
        private int _ProductTypeID;
        private int _ApplyStatus;
        private string _Name;
        private string _Specifications;
        private string _Manufactor;
        private DateTime _ManufactureDate;
        private Double _Price;
        private string _Unit;
        private string _Describe;
        private string _PicAddress;
        private string _ExtField;

        #endregion

        //属性

        #region GoodID
        /// <summary>
        /// GoodID
        /// </summary>
        [DataMember]
        [Column(IsUnique = true, IsPrimaryKey = true, Name = "GoodID", IsNull = false)]
        public int UID
        {
            get { return _GoodID; }
            set
            {
                _GoodID = value;
                ReportPropertyChanged("UID");
            }
        }
        #endregion

        #region ProductionGoodsID
        /// <summary>
        /// ProductionGoodsID
        /// </summary>
        [DataMember]
        [Column(Name = "ProductionGoodsID", IsNull = false)]
        public int ProductionGoodsID
        {
            get { return _ProductionGoodsID; }
            set
            {
                _ProductionGoodsID = value;
                ReportPropertyChanged("ProductionGoodsID");
            }
        }
        #endregion

        #region GoodsProductTypeID
        /// <summary>
        /// GoodsProductTypeID
        /// </summary>
        [DataMember]
        [Column(Name = "GoodsProductTypeID", IsNull = false)]
        public int GoodsProductTypeID
        {
            get { return _GoodsProductTypeID; }
            set
            {
                _GoodsProductTypeID = value;
                ReportPropertyChanged("GoodsProductTypeID");
            }
        }
        #endregion

        #region ProductTypeID
        /// <summary>
        /// ProductTypeID
        /// </summary>
        [DataMember]
        [Column(Name = "ProductTypeID", IsNull = false)]
        public int ProductTypeID
        {
            get { return _ProductTypeID; }
            set
            {
                _ProductTypeID = value;
                ReportPropertyChanged("ProductTypeID");
            }
        }
        #endregion

        #region 0 未审核 1 审核通过 2 审核未通过
        /// <summary>
        /// 0 未审核 1 审核通过 2 审核未通过
        /// </summary>
        [DataMember]
        [Column(Name = "ApplyStatus", IsNull = false)]
        public int ApplyStatus
        {
            get { return _ApplyStatus; }
            set
            {
                _ApplyStatus = value;
                ReportPropertyChanged("ApplyStatus");
            }
        }
        #endregion

        #region Name
        /// <summary>
        /// Name
        /// </summary>
        [DataMember]
        [Column(Name = "Name", IsNull = false)]
        public string Name
        {
            get { return _Name; }
            set
            {
                _Name = value;
                ReportPropertyChanged("Name");
            }
        }
        #endregion

        #region Specifications
        /// <summary>
        /// Specifications
        /// </summary>
        [DataMember]
        [Column(Name = "Specifications", IsNull = false)]
        public string Specifications
        {
            get { return _Specifications; }
            set
            {
                _Specifications = value;
                ReportPropertyChanged("Specifications");
            }
        }
        #endregion

        #region Manufactor
        /// <summary>
        /// Manufactor
        /// </summary>
        [DataMember]
        [Column(Name = "Manufactor", IsNull = false)]
        public string Manufactor
        {
            get { return _Manufactor; }
            set
            {
                _Manufactor = value;
                ReportPropertyChanged("Manufactor");
            }
        }
        #endregion

        #region ManufactureDate
        /// <summary>
        /// ManufactureDate
        /// </summary>
        [DataMember]
        [Column(Name = "ManufactureDate", IsNull = false)]
        public DateTime ManufactureDate
        {
            get { return _ManufactureDate; }
            set
            {
                _ManufactureDate = value;
                ReportPropertyChanged("ManufactureDate");
            }
        }
        #endregion

        #region Price
        /// <summary>
        /// Price
        /// </summary>
        [DataMember]
        [Column(Name = "Price", IsNull = false)]
        public Double Price
        {
            get { return _Price; }
            set
            {
                _Price = value;
                ReportPropertyChanged("Price");
            }
        }
        #endregion

        #region Unit
        /// <summary>
        /// Unit
        /// </summary>
        [DataMember]
        [Column(Name = "Unit", IsNull = false)]
        public string Unit
        {
            get { return _Unit; }
            set
            {
                _Unit = value;
                ReportPropertyChanged("Unit");
            }
        }
        #endregion

        #region Describe
        /// <summary>
        /// Describe
        /// </summary>
        [DataMember]
        [Column(Name = "Describe", IsNull = false)]
        public string Describe
        {
            get { return _Describe; }
            set
            {
                _Describe = value;
                ReportPropertyChanged("Describe");
            }
        }
        #endregion

        #region PicAddress
        /// <summary>
        /// PicAddress
        /// </summary>
        [DataMember]
        [Column(Name = "PicAddress", IsNull = false)]
        public string PicAddress
        {
            get { return _PicAddress; }
            set
            {
                _PicAddress = value;
                ReportPropertyChanged("PicAddress");
            }
        }
        #endregion

        #region ExtField
        /// <summary>
        /// ExtField
        /// </summary>
        [DataMember]
        [Column(Name = "ExtField", IsNull = false)]
        public string ExtField
        {
            get { return _ExtField; }
            set
            {
                _ExtField = value;
                ReportPropertyChanged("ExtField");
            }
        }
        #endregion

    }
}
